package br.ufsm.inf.zebraloqacliente.activities;

import br.ufsm.inf.zebraloqacliente.R;
import android.app.ActionBar;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class CadastrarActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.cadastro);
                
        Button botaoConfirmar = (Button) findViewById(R.id.confirmar);        
             
        botaoConfirmar.setOnClickListener(new View.OnClickListener() {
 
            public void onClick(View arg0) {            	
            	Toast.makeText(getApplicationContext(), "Cadastro Realizado com Sucesso", Toast.LENGTH_SHORT).show();
            	// Closing registration screen
                // Switching to Login Screen/closing register screen
                finish();
            }
        });
    }
    
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        
        ActionBar actionBar = getActionBar();
        //actionBar.setSubtitle("Zebra Loqa");
        actionBar.setTitle(""); 
        
        return true;
    }

}
